import request from '@/utils/request'

export default{
  
  getPageList(page, limit) {
    return request({
      url: `/educms/bannerAdmin/pageBanner/${page}/${limit}`,
      method: 'get'
    })
  },

  getBanner(bannerId) {
    return request({
      url: `/educms/bannerAdmin/get/${bannerId}`,
      method: 'get'
    })
  },

  addBanner(banner){
    return request({
      url: `/educms/bannerAdmin/save`,
      method: 'post',
      data: banner
    })
  },

  updateBanner(banner){
    return request({
      url: `/educms/bannerAdmin/update`,
      method: 'put',
      data: banner
    })
  },

  deleteBanner(bannerId){
    return request({
      url: `/educms/bannerAdmin/remove/${bannerId}`,
      method: 'delete'
    })
  }

}